load("@rules_rust//rust:defs.bzl", "rust_doc_test", "rust_library")

package(default_visibility = ["//visibility:public"])

rust_library(
    name = "canister_threshold_sigs",
    testonly = True,
    srcs = glob(["src/**"]),
    crate_name = "ic_crypto_test_utils_canister_threshold_sigs",
    proc_macro_deps = [
        # Keep sorted.
        "@crate_index//:strum_macros",
    ],
    version = "0.9.0",
    deps = [
        # Keep sorted.
        "//rs/crypto/internal/crypto_lib/threshold_sig/canister_threshold_sig",
        "//rs/crypto/temp_crypto",
        "//rs/interfaces",
        "//rs/monitoring/logger",
        "//rs/protobuf",
        "//rs/registry/fake",
        "//rs/registry/keys",
        "//rs/registry/proto_data_provider",
        "//rs/test_utilities/in_memory_logger",
        "//rs/types/types",
        "@crate_index//:rand",
        "@crate_index//:rand_chacha",
        "@crate_index//:strum",
    ],
)

rust_doc_test(
    name = "canister_threshold_sigs_doc_test",
    crate = ":canister_threshold_sigs",
)
